package com.hw.paltfrom.controller.weight;


import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.hw.paltfrom.pack.ResponseResult;
import com.hw.paltfrom.rescode.HWSystemCode;
import com.hw.paltfrom.service.weight.DataOverrunstationHistoryService;
import com.hw.paltfrom.utils.VerifyUtil;
import com.hw.paltfrom.vo.DataOverrunstationHistoryVo;
/**
 * 超限站检测数据
 * 邢家华
 * 2019-11-6 16:11:36
 *
 */
@RestController
@RequestMapping(value = "/hwDataOverrunstation")
public class DataOverrunstationHistoryContreller {

	@Autowired
	private DataOverrunstationHistoryService hwDataOverrunstationHistoryService;

	
	// 查询
		@RequestMapping(value = "/query")
		
		public  Map<String, Object> Query(@RequestParam HashMap<String,Object> vo){
			
			return hwDataOverrunstationHistoryService.queryAllList(vo);

		}
	
		
	//新增
		
		@RequestMapping(value = "/insert")
		public Map<String, Object> insert(DataOverrunstationHistoryVo vo) {
			Boolean flag = VerifyUtil.verifyParams(vo);
			if (!flag) {
				return ResponseResult.fail(HWSystemCode.PARAMS_ERROR);
			}
			return hwDataOverrunstationHistoryService.insert(vo);
		}
	//督导
		@RequestMapping(value = "/superVision")
		public Map<String, Object> superVision(DataOverrunstationHistoryVo vo) {
			
			return hwDataOverrunstationHistoryService.superVision(vo);
		}
		
		
}
